package com.jz.manage.impl;

import java.util.List;

import com.jz.dao.TestDAO;
import com.jz.manage.TestManage;
import com.jz.model.Model;
import com.jz.model.Test;

public class TestManageImpl implements TestManage {
	private TestDAO testDAO;
	
	public void setTestDAO(TestDAO testDAO) {
		this.testDAO = testDAO;
	}

	public List<Test> testList() {
		return testDAO.testList();
	}

	public void insertTest(Test test) {
		testDAO.insertTest(test);
	}

	public void updateTest(Test test) {
		testDAO.updateTest(test);
	}

	public Test getTest(int number) {
		return testDAO.getTest(number);
	}

	public List<Test> getLazyTestList(Model model){
		return testDAO.testList();
	}
	
	
}
